package com.acme.bankapp.service.bank.exception;

@SuppressWarnings("serial")
public class OverDraftLimitExceededException extends NotEnoughFundsException {
	private final static String MESSAGE_ERROR_OVERDRAFT = "Debited amount is less than the current balance and overdraft";
	
	private double balance;
	
	public double getBalance() {
		return balance;
	}
	
	private double overdraft;
	
	public double getOverdraw() {
		return overdraft;
	}

	public OverDraftLimitExceededException(double balance, double overdraft) {
		super(MESSAGE_ERROR_OVERDRAFT);
		this.balance = balance;
		this.overdraft = overdraft;
	}
}
